iT邦幫忙

0

OPA:從入門到入土心得錄02

  • 分享至 

  • xImage
  •  

OPA 的反向代理:

1. 進入 Nginx Proxy Manager 後臺

  • 選項單「Hosts」->找到域名的編輯選項->「Edit」
  • 選項單「Custom locations」->「Add location」
    • Define location:/OPA
    • Scheme:http
    • Forward Hostname / IP:Portainer IP (例如:192.168.1.101)
    • Forward Port:Portainer port (例如:8181)
    • 額外設定:
location = /opa {
  return 301 /opa/;
}

location /opa/ {
  proxy_pass http://192.168.1.101:8181/;
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_redirect off;
}
  • 選項單「Save」

https://ithelp.ithome.com.tw/upload/images/20251111/20180224BcTAw1JVxj.png


圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言